﻿using System.Data;

namespace DAL
{
    public class MasterDB : MainDB
    {
        protected override IDbConnection CreateConnection()
        {
            return new System.Data.SqlClient.SqlConnection(ConnectionStrings.MasterDB);
        }
    }

    public class MSohaDB : MainDB
    {
        protected override IDbConnection CreateConnection()
        {
            return new System.Data.SqlClient.SqlConnection(ConnectionStrings.MSohaDB);
        }
    }


    public class CrawlerSystemDB : MainDB
    {
        protected override IDbConnection CreateConnection()
        {
            return new System.Data.SqlClient.SqlConnection(ConnectionStrings.CrawlerSystemDB);
        }
    }

    public class VoteDB : MainDB
    {
        protected override IDbConnection CreateConnection()
        {
            return new System.Data.SqlClient.SqlConnection(ConnectionStrings.VoteDB);
        }
    }

    public class IOnlineDB : MainDB
    {
        protected override IDbConnection CreateConnection()
        {
            return new System.Data.SqlClient.SqlConnection(ConnectionStrings.IOnlineDB);
        }
    }
}
